﻿using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Text;

namespace Wuliu.SDK.Example
{
    public class Config
    {
        /// <summary>
        /// appkey
        /// </summary>
        public static string debangAppkey { get; set; }        
        /// <summary>
        /// 企业编号
        /// </summary>
        public static string debangCompanyCode { get; set; }

        public static void LoadConfig()
        {
            var config = new ConfigurationBuilder().AddJsonFile("appsettings.json").Build();
            debangAppkey = config["DeBang:appkey"];
            debangCompanyCode = config["DeBang:companyCode"];
        }
    }
}
